page_alloc: try to put heap control structures on the target node
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 30 Jan 2009 11:16:52 +0000 (11:16 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 30 Jan 2009 11:16:52 +0000 (11:16 +0000)
commit8ddc017144debd304fee3cc0f75fdcfb0a531e98
tree9b975758c64704948feae0a18f86a661d03221f1
parentb93bffcc1ad5730e5a8fc98b13b1e0d51f8626ac
page_alloc: try to put heap control structures on the target node

This also neatly eliminates (in certain cases) the need to reserve a
page between nodes, as the heap control structures will never be freed
and thus can serve as the needed separator.

It also adds an additonal fallback attempting to make use of the
wasted tail of a (group of) page(s) used for the _heap array by putting the
avail array there if it fits.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/common/page_alloc.c